package top.cjwtx.holy.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.cjwtx.holy.dao.SacredtokenCkDao;
import top.cjwtx.holy.pojo.dto.PwdCkDTO;
import top.cjwtx.holy.service.IPwdService;

import java.util.List;

@Service
public class PwdService implements IPwdService {

    @Autowired
    private SacredtokenCkDao ckDao;

    /**
     * 根据用户id查询归属的密码
     * @param userId
     * @return
     */
    @Override
    public List<PwdCkDTO> listPwdCkByUserId(Long userId) {
        return ckDao.listPwdCkByUserId(userId);
    }
}
